@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Style+Script&display=swap');
*{
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

/*global variables*/
:root {
    --midnight-color: #081f5c;
    --dawn-color: #d0e3ff;
    --porcelean-color: #edf1f6;
    --royal-color: #334eac;
    --china-color: #7096d1;
    --jicama-color: #fff9f0;
    --asian-pear-color: #f2f0de;
    --moon-color: #f7f2eb; 
    --sky-color: #bad6eb; 
}
body {
    background-color:  var(--moon-color);
    color: var(--midnight-color);
    
}


/* ===========================
   2. Header
   =========================== */
   

header {
    position: fixed;

    background-color: var(--porcelean-color);
    color: var(--midnight-color);

    width: 100%;
    background-size: 100%;

    top: 0;
    right: 0;
    left: 0;

    height: 8%;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

}

.logo {
    display: flex;

    font-size: 0.90rem;
    font-weight: 700;

    color: var(--midnight-color);

    column-gap: 0.3rem;

}

header nav {
    display: flex;
    align-items: center;


}

header nav ul {
    display: flex;
    align-items: center;
    gap: 1px; /* Space between navigation items */
}

header nav li {
    display: inline-block;
    margin: 10px;
}

header nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--royal-color);
    text-decoration: none;
}
header nav a:hover{
    background-color: var(--dawn-color);
    border-radius: 1rem;
    color: var(--midnight-color);
    transition: background 0.5s;
}
header nav a.active {
   /* Change background color for active link */
    border-bottom: 2px solid var(--royal-color); /* Add underline effect */
    color: var(--midnight-color); /* Optional: Change text color for better contrast */
}

/* ===========================
   2. Main
   =========================== */
main {
    margin-top: 0;
    padding: 20px;
    background-color: var(--moon-color);
    color: var(--midnight-color);
    font-size: 1rem;
    line-height: 1.6;
}

.title-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--midnight-color);
    color: #fff;
    padding: 48px 0 32px 0;
    box-shadow: 0 8px 32px rgba(51, 78, 172, 0.18);
    text-align: center;
    z-index: 1;
    margin-bottom: 32px;
}

.title-section h1 {
    font-size: 4rem;
    font-family: "Caveat", cursive, sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 16px;
    background: rgba(230, 229, 245, 0.12);
    border-radius: 8px;
    padding: 8px 16px;
    margin-top: 20px;

    display: inline-block;
    
}

.title-section p {
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.12);
    margin: 0 auto;
    max-width: 600px;
    
}

.blog-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 20px;
    padding-bottom: 25px;
    box-sizing: border-box;
}
.blog-card {
    background: linear-gradient(135deg, var(--moon-color) 80%, var(--jicama-color) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(51, 78, 172, 0.08);
    flex: 1 1 300px;
    max-width: 400px;
    min-height: 180px;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-direction: column;
    justify-content: center;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 32px rgba(51, 78, 172, 0.25);
    cursor: pointer;
}

.blog-card h3 {
    margin-top: 0;
    color: var(--royal-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.blog-card p {
    color: var(--midnight-color);
    font-size: 1.2rem;
    padding-top: 10px;
}

.blog-post-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(51, 78, 172, 0.08);
    padding: 24px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--midnight-color);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.blog-post-content.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.blog-post-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--royal-color);
}
.blog-post-content p {
    margin-bottom: 16px;
}
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}


/* ===========================
   3. Footer
   =========================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--porcelean-color);
    color: var(--midnight-color);
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}